package eu.best.sercheng.examples;

import java.net.URL;
import java.util.LinkedList;

import eu.best.sercheng.fetcher.Fetcher;
import eu.best.sercheng.frontier.Frontiere;
import eu.best.sercheng.model.dao.MainDao;
import eu.best.sercheng.model.dao.MainDaoImpl;

public class TryDatabase2 {
	public static void main(String[] args) {
		try {
			MainDao dao = new MainDaoImpl();
			LinkedList<String> linkedList = new LinkedList<String>();
		//	linkedList.add("banana");
		//	linkedList.add("chocolate");

		//	dao.putWordsToUrl("www.sdsad", linkedList);

			Frontiere frontier = new Frontiere(new URL("http://www.robotstxt.org/"));

			Fetcher fetcher = new Fetcher(new URL("http://www.robotstxt.org/"),frontier,dao);
			fetcher.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
